package Database;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

public class UserFilm {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	@Persistent
	private String username;

	@Persistent
	private long filmID;

	public UserFilm(String username, long filmID) {
		this.setUsername(username);
		this.setFilmID(filmID);

	}

	private void setId(Long id) {
		this.id = id;
	}

	private Long getId() {
		return id;
	}

	private void setUsername(String username) {
		this.username = username;
	}

	private String getUsername() {
		return username;
	}

	private void setFilmID(long filmID) {
		this.filmID = filmID;
	}

	private long getFilmID() {
		return filmID;
	}
}
